﻿using NPOI.SS.Formula.Functions;
using Ozone.BLL;
using Ozone.Device;
using Ozone.Models;
using ServiceStack;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Ozone.Views.SystemCenter.AdvancedParameter
{
    /// <summary>
    /// UltrasoundAdvancedParameter.xaml 的交互逻辑    超声仪器
    /// </summary>
    public partial class UltrasoundAdvancedParameter : UserControl
    {
        public UltrasoundAdvancedParameter()
        {
            InitializeComponent();
        }


        private void Button_Click(object sender, RoutedEventArgs e)
        {

        }
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {

        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_2(object sender, RoutedEventArgs e)
        {
    
        }

        private void Button_Click_3(object sender, RoutedEventArgs e)
        {

        }

        /// <summary>
        /// 关闭超声
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_cl(object sender, RoutedEventArgs e)
        {
          

        }

        /// <summary>
        /// 开始超声
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_op(object sender, RoutedEventArgs e)
        {
         
        }



        /// <summary>
        /// 查询Radisson
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_GR(object sender, RoutedEventArgs e)
        {

        }
        /// <summary>
        /// 创建Radis
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_Cr(object sender, RoutedEventArgs e)
        {




            //RedisKeyValue redisKeyValue = new RedisKeyValue();
            //redisKeyValue.Key = "AGVPO";

            //redisKeyValue.Value = "1";

            //DeviceCenter.redisService.Set<RedisKeyValue>("AGVPO", redisKeyValue, TimeSpan.FromHours(1));



            //DeviceCenter.redisService.SearchKeys("AGVPO");


            //DeviceCenter.redisService.ContainsKey("AGVPO");

            //RedisKeyValue aa = DeviceCenter.redisService.Get<RedisKeyValue>("AGVPO");


        }


        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_clselect(object sender, RoutedEventArgs e)
        {

            DateTime Sdate = Convert.ToDateTime("2024-10-13 19:30:13");
            DateTime Edate = Convert.ToDateTime("2025-10-14 19:30:13");

            OperLogBLL.GetLogList(Sdate, Edate, "23469");
        }

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_clAdd(object sender, RoutedEventArgs e)
        {
            sys_operlog sys_Operlog = new sys_operlog();
            sys_Operlog.OperationModel = "模块设置";
            sys_Operlog.OperationContentJson = "ertyuiofhjrtyui";
            sys_Operlog.OperaterCode = "124578";
            sys_Operlog.OperaterName = "12478";
            sys_Operlog.OperateRemark = "12485878";
            sys_Operlog.CreateDate = DateTime.Now;

            OperLogBLL.AddLog(sys_Operlog);

        }

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_clDelete(object sender, RoutedEventArgs e)
        {

            sys_operlog sys_Operlog = new sys_operlog();
            sys_Operlog.FID = 23481;
            sys_Operlog.OperationModel = "模块设置";
            sys_Operlog.OperationContentJson = "模块设置";
            sys_Operlog.OperaterCode = "模块设置";
            sys_Operlog.OperaterName = "模块设置";
            sys_Operlog.OperateRemark = "模块设置";
            sys_Operlog.CreateDate = DateTime.Now;

            OperLogBLL.UpdateLog(sys_Operlog);
        }
    }
}
